def check_number_exit(password):
    for x in password:
        if x.isnumeric():
            return True
    return False


def check_letter_exit(password):
    for x in password:
        if x.isalpha():
            return True
    return False


def main():
    password_str = input("请输入密码：")
    strength_level = 0
    # 规则1：密码长度大于8
    if len(password_str) > 8:
        strength_level += 1
    # 规则2：包含数字
    if check_number_exit(password_str):
        strength_level += 1
    # 规则3：包含数字
    if check_letter_exit(password_str):
        strength_level += 1
    if strength_level == 3:
        print("您的密码强度为高强度！")
    else:
        print("您设置的密码强度为低强度！")


if __name__ == "__main__":
    main()
    print("计科1813 24 姜沭琪")